Using the Bridge Design Pattern for OSGi Service Update

نویسندگان

  • Hans Werner Pohl
  • Jens Gerlach
چکیده

In the OSGi framework, components cooperate by sharing service objects. The suggested way to replace a service by a newer version consists of updating its containing components which requires a temporary shutdown of the component. Special care must be taken to avoid dangling references to old service instances. As this appears to be an overly expensive strategy, we describe the use of the well-known Bridge design pattern to decouple service replacement from component updates. Instead of registering services only references to instances of automatically generated bridge classes are registered. This solves not only the problem of dangling references but also avoids stopping and starting dependent bundles.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

OSGi Based Service Infrastructure for Context Aware Connec..

This paper presents an OSGi based service infrastructure for delivering, managing and developing context aware services in connected homes. An OSGicompliant residential gateway (RG) is deployed in connected homes to bridge the Internet and the home networks and devices. A device access system architecture has been embedded in RG and devices to facilitate device discovery, capability sharing and...

متن کامل

Classification and Evaluation of Middleware Collaboration Architectures for Converging MHP and OSGi in a Smart Home

If Interactive Digital Television (IDTV) and Residential Service Gateway (RG) converge, i.e. to share services and resources, add-on values or new services could be created. We assume that a user will have an IDTV instance and an RG instance. These two can be implemented on a single machine or each on a separate machine connected by a network. Collaboration architectures of IDTV and RG support ...

متن کامل

Design and Implementation of an Embedded Home-gateway for Remote Monitoring Based on Osgi Technology

In this paper, we use OSGi (Open Service Gateway Initiative) technology to design and implement a remote monitor system in an embedded home-gateway. For the integration of all kinds of existing communication protocol, OSGi technology has the potential to conform with numerous standards. Because OSGi has a defined external protocol services interface, it provides compatible services to control t...

متن کامل

Services Everywhere: OSGi in Distributed Environments

Distribution is increasingly becoming an important issue in both enterprise applications and mobile computing. OSGi itself has only rudimental support for distribution, in forms of interfaces for interaction with Jini (R3) or UPnP (R3 + R4) infrastructures. When it comes to interconnecting different OSGi frameworks, there are only few solutions so far. In this paper, we present these existing s...

متن کامل

The Software Fabric for the Internet of Things

One of the most important challenges that need to be solved before the “Internet of Things” becomes a reality is the lack of a scalable model to develop and deploy applications atop such a heterogeneous collection of ubiquitous devices. In practice, families of hardware devices or of software platforms have intrinsic characteristics that make it very cumbersome to write applications where arbit...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2003